<?php
	####################################################
	# library import and object instance.              #
	####################################################
	# 커먼 인클루드
	include_once( '../common.php' );

	####################################################
	# request data($_POST AND $_GET FROM $_REQUEST)    #
	####################################################
	# REQUEST(get and post variables)
	$req = Request::clean_request($_REQUEST, FALSE);

	# GET(url variables)

	# POST(form variables)

	# Validation(special case validate)

	####################################################
	# implementation                                   #
	####################################################
	$sec->individual_access();
	$sec->run_cookie_check();
	//$package_destroied = $appm->empty_packages();
	$updated_packages = $appm->update_packages();
	//Nlog::puts('updated_packages', $updated_packages);
?>
<?php
	# HTML START
	echo $html->custom_header(TITLE);
	echo $tplt->page_construct_javascript();
	echo $html->custom_js("{$JS}common.js");
	echo $html->custom_css("{$CSS}common.css");
	echo $html->custom_body();
?>
	<?php $tplt->app_head($NAVI)?>
	<?php $tplt->tiles_admin_sidebar($NAVI)?>
	<?php $tplt->tiles_admin_contents($pkname, $pname, $pdesc)?>

		<div class="msgbox">
			<p>
				<strong>패키지 업데이트 내역</strong><br />
				<?php if(count($updated_packages) > 0):?>
					<?php foreach($updated_packages as $key=>$val):?>
						<?=$key?>. <?=$val?><br />
					<?php endforeach;?>
				<?php else:?>
					업데이트할 패키지가 없습니다.
				<?php endif;?>
			</p>
		</div>
		<span class="cbtn_s mart5" onclick="Mover.href('admin.package.manager');">확인</span>

<?php
	# HTML END
	echo $tplt->tiles_admin_footer();
	echo $tplt->page_destruct_javascript();
	include_once( '../endproc.php' );
	echo $html->html_footer();
?>